<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%
	String contextPath = request.getContextPath();
%>  
<style type="text/css">
	ul,ol,li {list-style:none;}
	li {display:inline;}
</style>
<form action="<%=contextPath %>/eventBoard/list.do" name="search" method="get" onsubmit="return searchCheck()">
<!-- //Wrapper -->
<div id="wrapper">	
<!-- Contenter_Sub -->
<div id="container_sub">
<!-- Content_List -->
<div id="sub_page_bg4"></div>
<!-- Sub Page Background -->
		
<div id="content_list">
<div class="title">
						
<div class='sub_title'>
	<ul>
		<li>My Ticket</li>
		<li class='stitle'>파티 & 미팅에 참여해 주세요!!</li>
	</ul>
</div>

<div class='navig'>
<ul>
<li class='frst'><img src='../image/all/home_icon.png' width='13' height='13'><a href='<%=contextPath %>/main/index.do'>HOME</a></li>
<li>회원서비스</li>
<li>My Ticket</li>
</ul></div>

<!-- sub_menu-->	
	<ul class='sub_menu'>		
		<ul class="sub_tab">
			<li><a class='rollover' href="<%=contextPath%>/member/myPage.do">내 정보</a></li>
			<li><a class='rollover' href="<%=contextPath%>/member/paymentList.do">결제내역</a></li>
			<li><a class='over' href="<%=contextPath%>/member/myTicketList.do">My Ticket</a></li>
			<li><a class='rollover' href="<%=contextPath%>/matching/sendPropose.do?id=${id}">MY PROPOSE</a></li>
			<li><a class='rollover' href="<%=contextPath%>/member/sendSmsList.do">쪽지함</a></li>
		</ul>
	</ul>	
			
<!-- class title div끝 -->
</div>

	
<!-- 게시판 목록 시작 { -->

<div id="event_list">
    
    <!--총 글건수랑 현재 페이지-->
    <div class="bo_fx">
        <div id="bo_list_total">
            <span>Total${count}건</span>
            ${currentPage}페이지 
        </div>
            <ul class="btn_bo_user" style="float:right">
               
             </ul>     
     </div>
     

<c:forEach var="article" items="${list}">
      <details class="sub_10_3_faq_q">
      	<summary class="sub_10_2_faq_q">
      	 	<span id="number">${number}.</span><span id="t_name">Tiket Name</span>${article.title}
      	</summary>
     	    <c:set var="number" value="${number-1}"/>
      		<table id="tbl_ticket">
      			<tr>
      				<td width="300" rowspan="5" style="border:1px solid gray"> 
      					<img src="/wedding/upload/${article.filename}" width="100%" height="150">
      				</td>
    			</tr>
    			<tr>
	    			<th width="70">
	    				<span>구매일자</span>
	    			</th>
	    			<td colspan="2">
	    				${article.pdate}
	    			</td>
    			</tr>
	    		<tr>
	    			<th>
	      				가격
	      			</th>
	    			<td colspan="2">
	    				${article.ticket_Price}
	    			</td>
	    		</tr>
	    		<tr>
	    			<th>
	    				장소
	    			</th>
	    			<td colspan="2">
	    				${article.place}
	    			</td>
	    		</tr>
	    		<tr>
	    			<th>
	    				구매 수량
	    			</th>
	    			<td>
	    				${article.amount_ticket }
	    			</td>
	    			<td  rowspan="2" style="text-align:right; vertical-align: bottom;">
	      				<input type="button" value="삭제" class="btn_ticket" onclick="location.href='delete.do?num=${article.num}'">
	    			</td> 
	    		</tr>
      		</table>
     	 </details>
	</c:forEach>

<!-- 페이징처리 -->
<table>
<c:if test="${count > 0}">
<nav class="pg_wrap">

	<span class="pg">
	${pagingHtml} </span>
	  
</nav>
</c:if>
</table>
<!-- 게시판 검색 시작 { -->
<fieldset id="bo_sch" >
  
</fieldset>
		<!-- <div id="blank">&nbsp;</div> -->
		</div>
		<!-- //content_list -->

	</div>
	<!-- //contenter_sub -->

</div>
<!-- //wrapper -->
</div>
<hr>
</form>
